package net.mujiwulian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: silence
 * @Description:
 * @Date:Create：in 2019/12/28 15:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_type")
public class GoodsType implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 商品分类名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 操作人
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private MultipartFile img;
}
